package cn.com.anysdk.starter.config.log;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 操作日志相关配置属性
 */
@Component
@ConfigurationProperties(prefix = "operation.logging")
public class OperationLoggingProperties {

    /**
     * 是否启用操作日志
     */
    private boolean enabled = true;

    /**
     * 日志级别（如INFO、DEBUG、ERROR）
     */
    private String level = "INFO";

    /**
     * 是否记录请求和响应内容
     */
    private boolean logRequestResponse = false;

    // ...getter and setter...

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public boolean isLogRequestResponse() {
        return logRequestResponse;
    }

    public void setLogRequestResponse(boolean logRequestResponse) {
        this.logRequestResponse = logRequestResponse;
    }
}
